/* 封装常用组件 */
import { ElMessage, ElNotification } from 'element-plus'

// ElMessage - showMessage()
type messageType = "info" | "success" | "error" | "warning";
export function showMessage(message:string, type:messageType) {
    ElMessage({
        message,
        type,
        center: true
    })
}

export function showNotification(message:string, type:messageType) {
    ElNotification({
        title: 'tip',
        message,
        type,
        duration: 2700,
        position: 'bottom-right'
    })
}
